package feign.okhttp.learn.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HelloFeignClientServer {


    @GetMapping(value = "/search404")
    public String search404(@RequestParam("q") String queryStr) throws InterruptedException {
        System.out.println("search404 hello......");
        Thread.sleep(60 * 1000);
        return "hello";
    }

    @GetMapping(value = "/searchTimeOut")
    public String searchTimeOut(@RequestParam("q") String queryStr) throws InterruptedException {
        System.out.println("search404 hello......");
        Thread.sleep(60 * 1000);
        return "hello";
    }


}
